from flask import Flask
from markupsafe import escape #转义
app = Flask(__name__)
@app.route('/')
def hello_world():
    return 'Hello World!'

@app.route('/<name>')
def hello(name):
    return f'Hello, {escape(name)}!'
